<?php
$this->load->view('header');
?>

<div id="main_content">
<div class="titlebar"><?= $title;?></div>
<div class="top_margin"></div>
<div class="homepage_mid_column">
<?php $this->load->view('user/user_leftnav');?>

<div class="book_charts2">
<?php
  if($msgs==0)
    echo "你没有已发送短消息。";
  else{
      echo "<table>\n";
      echo "<tr><th width=\"200\" align=\"left\">标题</th><th width=\"200\" align=\"left\">时间</th><th width=\"100\" align=\"left\">接受者</th><th width=\"80\" align=\"left\">操作</th></tr>";
    foreach($msgs as $msg){
?>
    <tr height="20"><td width="200"><a href="<?=site_url()?>/user/read_msg_content?msgid=<?=$msg->id?>&kind=send"><?=$msg->theme?></a></td><td width="150"><?=$msg->time?></td><td width="80"><?=$msg->receiver_id?></td>
<?php
    echo "<td width=\"30\"><a href=\"" .site_url(). "/user/del_msg2?msgid=" .$msg->id. "&read=1&kind=send\">删除</a></td></tr>\n";
  }
  echo "</table>";
 }
?>
</div>
<div class="pagination">
<?php echo $this->mypagination->create_links(); ?>
</div>
</div> <!--homepage_mid_column-->
</div>

<?php
$this->load->view('footer2');
?>